Skip to content

Simplify updates #4404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Simplify updates #4404

wants to merge 5 commits into from

Conversation

djc
Copy link
Contributor

@djc djc commented Jul 8, 2025

@djc djc requested review from ChrisDenton and rami3l July 8, 2025 13:46
@djc djc force-pushed the simplify-updates branch from e0168e4 to bf04ae1 Compare July 8, 2025 14:03
.into_iter()
.map(|(p, s)| (PackageUpdate::Toolchain(p), s))
.collect();
show_channel_updates(cfg, t)?;
Copy link
Member

@rami3l rami3l Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but I'm a bit confused about this... Do you know why are we showing channel updates during self update in the first place? That might help with understanding the current behavior...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1605 mentions

This will make sure people who do rustup update stable still get a new rustup

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djc Thanks for mentioning that PR!

After another it looks like this change is basically inlining the show_channel_updates() calls, and the only difference is that in the original version might do other fallible things before printing the channel updates.

Given that, maybe I have misunderstood your original commit message, which gave me the impression of something related to --no-self-update. How about "Show channel updates even if self update is not permitted", so it's clear that it's related to SelfUpdatePermission?

rami3l

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants